package cn.uikit.demo.other

import android.util.Log
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.launch

data class User(val name: String)

object DataCenter {
    val data = MutableStateFlow<User?>(null)

    fun send(scope: CoroutineScope) {
        scope.launch {
            Log.d("Sivin", "send: ")
            data.value = User("abc" + System.currentTimeMillis())
        }
    }
}